import request from '@/utils/request.js'

//提供调用全部列表信息的函数
export const searchPage = (farmerData)=>{
    return  request.post('/farmer/list',farmerData)
}

//编辑
export const farmerUpdateService = (farmerData)=>{
    return request.post('/farmer/update',farmerData);
}
//删除
export const farmerDelService = (farmerData)=>{
    return request.post('/farmer/delete',farmerData);
}

//查询信息
export const searchByArea = (farmerdata)=>{
    return  request.post('/farmer/searchByArea',farmerdata)
}

//查询信息
export const searchInfo = (data)=>{
    return request.post('/farmer/searchRisk',data)
}